/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.garethc.chpt2.nullreturn.nullreturn.impl;

import za.ac.cput.garethc.chpt2.nullreturn.nullreturn.NullReturn;

/**
 *
 * @author Gareth
 */
public class NullReturnImpl implements NullReturn
{

    @Override
    public String returnText(String s) 
    {
        s = s.toLowerCase();
        
        if (s.contains("zero") || s.contains("nothing") || s.contains("null"))
            s = null;
        
        return s;
    }
    
}
